import request from '@/utils/request'

export function page(query) {
  return request({
    url: '/api/admin/PlaceConfig/page',
    method: 'get',
    params: query
  })
}

export function addPlace(Obj) {
  return request({
    url: '/api/admin/PlaceConfig',
    method: 'post',
    data: Obj
  })
}

export function getPlace(id) {
  return request({
    url: '/api/admin/PlaceConfig/' + id,
    method: 'get'
  })
}

export function upObj(id, obj) {
  return request({
    url: '/api/admin/PlaceConfig/' + id,
    method: 'put',
    data: obj
  })
}

export function getAll() {
  return request({
    url: '/api/admin/PlaceConfig/all',
    method: 'get'
  })
}
